package de.baumann.browser.views.dialog

import android.content.Context
import de.baumann.browser.R
import kotlinx.android.synthetic.main.dialog_rule.*

class RuleDialog(context: Context) : BaseDialog(context) {
    override fun laoutId(): Int {
        return R.layout.dialog_rule
    }

    override fun initView() {
        btnRuleOK.setOnClickListener {
            dismiss()
        }
    }

    fun setRuleTitle(title: String): RuleDialog {
        ruleTitle.text = title
        return this
    }

    fun setRuleContent(content: String):RuleDialog {
        ruleContent.text = content
        return this
    }
}